package com.lagou.controller;

import com.lagou.pojo.LagouUser;
import com.lagou.service.UserService;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("user")
public class UserController {
    @Reference
    private UserService userService;

    @RequestMapping("register")
    public String register() {
        LagouUser user = new LagouUser();
        String register = userService.register(user);
        return register;
    }
}
